

//#endif // MENU_H
#ifndef MENU_H
#define MENU_H

#include <QGraphicsScene>
#include <QGraphicsPixmapItem>
#include <QPushButton>
#include <QWidget>
#include "instructionswindow.h"

class Menu : public QGraphicsScene {
    Q_OBJECT
public:
    explicit Menu(QObject* parent = nullptr);
    void resizeBackground(int width, int height);

signals:
    void startGame();
    void exitGame();
    void showInstructions();//

private slots:
    void onStartClicked();
    void onExitClicked();
    void onshowInstructionsClicked();//

private:
    void setupUI();

    QGraphicsPixmapItem* background = nullptr;
    QPushButton* startBtn;
    QPushButton* exitBtn;
    QPushButton*showInstructionsBtn;//
    QPixmap originalBg;
    instructionswindow*instructionsWindow;
};

#endif // MENU_H
